package com.future.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Auther: 田坑坑
 * @Date: 2022/5/16 16:57
 * @Description: 文件上传的路径
 */

@Configuration
public class fileConfig  implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {

        registry.addResourceHandler("/file/**").
                addResourceLocations("file:C:/uploadImg/");
    }



}
